// UTF-8

//经营户经济类型
var economicTypesData = {
	"100":{"name":"内资","code":"100"},
	"110":{"name":"国有全资","code":"110"},
	"120":{"name":"集体出资","code":"120"},
	"130":{"name": "股份合作","code":"130"},
	"140":{"name": "联营","code":"140"},
	"141":{"name": "国有联营","code":"141"},
	"142":{"name": "集体联营","code":"142"},
	"143":{"name": "国有与集体联营","code":"143"},
	"149":{"name": "其他联营","code":"149"},
	"150":{"name": "有限责任（公司）","code":"150"},
	"151":{"name": "国有独资（公司）","code":"151"},
	"159":{"name": "其他有限责任（公司）","code":"159"},
	"160":{"name": "股份有限（公司）","code":"160"},
	"170":{"name": "私有","code":"170"},
	"171":{"name": "私有独资","code":"171"},
	"172":{"name": "私有合伙","code":"172"},
	"173":{"name": "私营有限责任（公司）","code":"173"},
	"174":{"name": "私营股份有限（公司）","code":"174"},
	"175":{"name": "个体经营","code":"175"},
	"179":{"name": "其他私有","code":"179"},
	"190":{"name": "其他内资","code":"190"},
	"200":{"name": "港、澳、台投资","code":"200"},
	"210":{"name": "内地和港、澳、台合资","code":"210"},
	"220":{"name": "内地和港、澳、台合作","code":"220"},
	"230":{"name": "港、澳、台独资","code":"230"},
	"240":{"name": "港、澳、台投资股份有限（公司）","code":"240"},
	"290":{"name": "其他港、澳、台投资","code":"290"},
	"300":{"name": "国外投资","code":"300"},
	"310":{"name": "中外合资","code":"310"},
	"320":{"name": "中外合作","code":"320"},
	"330":{"name": "外资","code":"330"},
	"340":{"name": "国外投资股份有限（公司）","code":"340"},
	"390":{"name": "其他国外投资","code":"390"},
	"900":{"name": "其他","code":"900"}
};

function getEconomicTypesDataIndex(code){
	
	for(var key in economicTypesData){
var value = economicTypesData[key];
if(value.code == code) {
	return parseInt(key)
}
	}
	return 0;
};

//经营区域 
var serviceZoneData = {
	"1":{"name":"全国含北京","code":"QGHBJ"},
	"2":{"name":"全国不含北京","code":"QGBHBJ"},
	"3":{"name":"北京","code":"BJ"},
	"4":{"name":"其他","code":"QT"},
};

function getServiceZoneDataIndex(code){
	
	for(var key in serviceZoneData){
var value = serviceZoneData[key];
if(value.code == code) {
	return parseInt(key)
}
	}
	return 0;
};

//民族表数据
var nationData = {
	"1":{"name":"汉族","code":"1"},
	"2":{"name":"蒙古族","code":"2"},
	"3":{"name":"回族","code":"3"},
	"4":{"name":"藏族","code":"4"},
	"5":{"name":"维吾尔族","code":"5"},
	"6":{"name":"苗族","code":"6"},
	"7":{"name":"彝族","code":"7"},
	"8":{"name":"壮族","code":"8"},
	"9":{"name":"布依族","code":"9"},
	"10":{"name":"朝鲜族","code":"10"},
	"11":{"name":"满族","code":"11"},
	"12":{"name":"侗族","code":"12"},
	"13":{"name":"瑶族","code":"13"},
	"14":{"name":"白族","code":"14"},
	"15":{"name":"土家族","code":"15"},
	"16":{"name":"哈尼族","code":"16"},
	"17":{"name":"哈萨克族","code":"17"},
	"18":{"name":"傣族","code":"18"},
	"19":{"name":"黎族","code":"19"},
	"20":{"name":"傈僳族","code":"20"},
	"21":{"name":"佤族","code":"21"},
	"22":{"name":"畲族","code":"22"},
	"23":{"name":"高山族","code":"23"},
	"24":{"name":"拉祜族","code":"24"},
	"25":{"name":"水族","code":"25"},
	"26":{"name":"东乡族","code":"26"},
	"27":{"name":"纳西族","code":"27"},
	"28":{"name":"景颇族","code":"28"},
	"29":{"name":"柯尔克孜族","code":"29"},
	"30":{"name":"土族","code":"30"},
	"31":{"name":"达斡尔族","code":"31"},
	"32":{"name":"仫佬族","code":"32"},
	"33":{"name":"羌族","code":"33"},
	"34":{"name":"布朗族","code":"34"},
	"35":{"name":"撒拉族","code":"35"},
	"36":{"name":"毛难族","code":"36"},
	"37":{"name":"仡佬族","code":"37"},
	"38":{"name":"锡伯族","code":"38"},
	"39":{"name":"阿昌族","code":"39"},
	"40":{"name":"普米族","code":"40"},
	"41":{"name":"塔吉克族","code":"41"},
	"42":{"name":"怒族","code":"42"},
	"43":{"name":"乌孜别克族","code":"43"},
	"44":{"name":"俄罗斯族","code":"44"},
	"45":{"name":"鄂温克族","code":"45"},
	"46":{"name":"崩龙族","code":"46"},
	"47":{"name":"保安族","code":"47"},
	"48":{"name":"裕固族","code":"48"},
	"49":{"name":"京族","code":"49"},
	"50":{"name":"塔塔尔族","code":"50"},
	"51":{"name":"独龙族","code":"51"},
	"52":{"name":"鄂伦春族","code":"52"},
	"53":{"name":"赫哲族","code":"53"},
	"54":{"name":"门巴族","code":"54"},
	"55":{"name":"珞巴族","code":"55"},
	"56":{"name":"基诺族","code":"56"},
	"57":{"name":"其他","code":"57"},
};
function getNationDataIndex(code){
	
	for(var key in nationData){
var value = nationData[key];
if(value.code == code) {
	return parseInt(key)
}
	}
	return 0;
};


var educationData = {
	 "23":{"name":"博士研究生毕业","code":"11"},
	 "24":{"name":"博士研究生结业","code":"12"},
	 "25":{"name":"博士研究生肄业","code":"13"},  
	 "26":{"name":"硕士研究生毕业","code":"14"},
	 "27":{"name":"硕士研究生结业","code":"15"},
	 "28":{"name":"硕士研究生肄业","code":"16"},
	 "29":{"name":"研究生班毕业","code":"17"},
	 "30":{"name":"研究生班结业","code":"18"},
	 "31":{"name":"研究生班肄业","code":"19"},
	 "1":{"name":"大学本科毕业","code":"21"},
	 "2":{"name":"大学本科结业","code":"22"},
	 "3":{"name":"大学本科肄业","code":"23"},
	 "4":{"name":"大学普通班毕业","code":"28"},
	 "5":{"name":"大学专科毕业","code":"31"},
	 "6":{"name":"大学专科结业","code":"32"},  
	 "7":{"name":"大学专科肄业","code":"33"},
	 "8":{"name":"中等专科毕业","code":"41"},  
	 "9":{"name":"中等专科结业","code":"42"},  
	 "10":{"name":"中等专科肄业","code":"43"},  
	 "11":{"name":"职业高中毕业","code":"44"},  
	 "12":{"name":"职业高中结业","code":"45"},  
	 "13":{"name":"职业高中肄业","code":"46"},  
	 "14":{"name":"技工学校毕业","code":"47"},  
	 "15":{"name":"技工学校结业","code":"48"},  
	 "16":{"name":"技工学校肄业","code":"49"}, 
	 "32":{"name":"高中以下","code":"50"},
	 "17":{"name":"普通高中毕业","code":"61"},  
	 "18":{"name":"普通高中结业","code":"62"},   
	 "19":{"name":"普通高中肄业","code":"63"}, 
	 "20":{"name":"中等师范学校（幼儿师范学校）毕业","code":"91"},
	 "21":{"name":"中等师范学校（幼儿师范学校）结业","code":"92"},
	 "22":{"name":"中等师范学校（幼儿师范学校）肄业","code":"93"},
	 "33":{"name":"其他","code":"90"},
};
function getEducationDataIndex(code){
	
	for(var key in educationData){
var value = educationData[key];
if(value.code == code) {
	return parseInt(key)
}
	}
	return 0;
};

var driverTypeData ={
	 "1":{"name":"A1","code":"A1"},
	 "2":{"name":"A2","code":"A2"},
	 "3":{"name":"A3","code":"A3"},
	 "4":{"name":"B1","code":"B1"},
	 "5":{"name":"B2","code":"B2"},
	 "6":{"name":"C1","code":"C1"},
	 "7":{"name":"C2","code":"C2"},
	 "8":{"name":"其他","code":"C1"},
};
function getDriverTypeDataIndex(code){
	
	for(var key in driverTypeData){
		var value = driverTypeData[key];
		if(value.code == code) {
			return parseInt(key)
		}
	}
	return 0;
};

